// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-vo.ts.hbs生成
import { ControlVOBase } from '@/core';
import { transformValue } from '@/utils';
import { model } from './test-409-form-model';

export class FormControlVO extends ControlVOBase {
    constructor(data: any) {
        //  表单预置字段
        data.srfwfmemo = data['srfwfmemo'] ? data['srfwfmemo'] : '';
        data.srffrontuf = data['srffrontuf'] ? data['srffrontuf'] : '';
        super(data);
        //  表单自持属性
        this.$ownKeys = ['srfupdatedate', 'srforikey', 'srfkey', 'srfmajortext', 'srftempmode', 'srfuf', 'srfdeid', 'srfsourcekey', 'formitem1', 'formitem', 'formitem2', 'formitem4', 'formitem5', 'formitem3', 'formitem6', 'formitem7', 'thirdid'];
    }
    get srfupdatedate() {
        return this.$DO.updatedate;
    }
    set srfupdatedate(value: any) {
        this.$DO.updatedate = value;
    }
    get srfkey() {
        return this.$DO.thirdid;
    }
    set srfkey(value: any) {
        this.$DO.thirdid = value;
    }
    get srfmajortext() {
        return this.$DO.thirdname;
    }
    set srfmajortext(value: any) {
        this.$DO.thirdname = value;
    }
    get formitem2() {
        return this.$DO.thirdid;
    }
    set formitem2(value: any) {
        this.$DO.thirdid = value;
    }
    get formitem4() {
        return this.$DO.thirdid;
    }
    set formitem4(value: any) {
        this.$DO.thirdid = value;
    }
    get thirdid() {
        return this.$DO.thirdid;
    }
    set thirdid(value: any) {
        this.$DO.thirdid = value;
    }
    // 界面主键标识
    get third() {
        return this.$DO.thirdid;
    }

    set third(value: any) {
        this.$DO.thirdid = value;
    }

    //  工作流预置字段
    srfwfmemo: any;
    srffrontuf: any;

    //  无实体属性表单项
    get srftempmode() {
        return this.$DO.srftempmode;
    }

    set srftempmode(value: any) {
        this.$DO.srftempmode = value;
    }
    get formitem1() {
        return this.$DO.formitem1;
    }

    set formitem1(value: any) {
        this.$DO.formitem1 = value;
    }
    get formitem() {
        return this.$DO.formitem;
    }

    set formitem(value: any) {
        this.$DO.formitem = value;
    }
    get formitem5() {
        return this.$DO.formitem5;
    }

    set formitem5(value: any) {
        this.$DO.formitem5 = value;
    }
    get formitem3() {
        return this.$DO.formitem3;
    }

    set formitem3(value: any) {
        this.$DO.formitem3 = value;
    }
    get formitem6() {
        return this.$DO.formitem6;
    }

    set formitem6(value: any) {
        this.$DO.formitem6 = value;
    }
    get formitem7() {
        return this.$DO.formitem7;
    }

    set formitem7(value: any) {
        this.$DO.formitem7 = value;
    }

    //  表单重复器

    /**
     * 返回后台数据
     *
     * @return {*} 
     * @memberof FormControlVO
     */
	public getDo() {
        return {
            srffrontuf: this.srffrontuf,
            thirdid: this.$DO.thirdid,
updatedate: this.$DO.updatedate,
thirdname: this.$DO.thirdname,
formitem1: this.formitem1,
formitem: this.formitem,
formitem5: this.formitem5,
formitem3: this.formitem3,
formitem6: this.formitem6,
formitem7: this.formitem7,
        }
	}

}